package graph.drawingshapes.shapes
{
	public class RoundedDrawingShapeFactory extends DrawingShapeFactory
	{
		public static function createShape(shapeName:String, x:Number=DrawingShape.DefaultX, y:Number=DrawingShape.DefaultY, width:Number=DrawingShape.DefaultWidth, height:Number=DrawingShape.DefaultHeight, cornerRadius:Number=5):DrawingShape
		{
			var shape:DrawingShape = null;
			shape = DrawingShapeFactory.createShape(shapeName, x, y, width, height);
			if (shape != null)
			{
				return shape;
			}
			switch(shapeName)
			{
				case RoundedRectangleShape.NAME:
				shape = new RoundedRectangleShape(x, y, width, height, cornerRadius);
				break;
			}
			return shape;
		}
	}
}